package com.company;

import java.util.Scanner;

public class there {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入球体的半径：");
        float r = sc.nextFloat();
        System.out.println("球的表面积为："+4*3.14*r*r);
        System.out.println("球的体积为："+3*(3.14*r*r*r)/4);

    }
}
